package com.ly.demo.service;

import com.ly.common.core.bean.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 常规feign接口定义
 *
 * @desc (contextId = " remoteUserService ",
 * @author jeecg
 * @date: 2022/04/21
 */
@FeignClient(value = "lely-demo-service")
@Component
public interface DemoClientService {

    /**
     * feign测试方法
     *
     * @param name
     * @return
     */
    @GetMapping("/test/api/getMessage")
    R getMessage(@RequestParam(value = "name", required = false) String name);
}
